package org.wangyuhang;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import org.wangyuhang.dao.testDao;
import org.wangyuhang.service.testService;

public class  test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
        testDao dao = (testDao) applicationContext.getBean("testDao");
        testService service = (testService) applicationContext.getBean("testService");
        dao.print();
        service.print();
    }
}
